package addressbook2;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class View extends JFrame {
	public class calcPanel {

	}

	public static JButton addButton = new JButton("Add");
	public static JButton deleteButton = new JButton("Delete");
	public static JButton editButton = new JButton("Edit");
	public static JButton sortName = new JButton("Sort by name");
	public static JButton displayButton = new JButton("Display Contacts");
	public static JButton sortGroup = new JButton("Sort by group");
	public static JButton sortDate = new JButton("Sort by date");
	
	public String name;
	
	View(){
		JPanel calcPanel = new JPanel();
		
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setSize(600, 100);
		
		calcPanel.add(addButton,0,0);
		calcPanel.add(deleteButton);
		calcPanel.add(editButton);
		calcPanel.add(displayButton);
		calcPanel.add(sortName);
		calcPanel.add(sortGroup);
		calcPanel.add(sortDate);
		  
		this.add(calcPanel);
	}
	
	// If the addButton is clicked execute a method
		// in the Controller named actionPerformed

		
}
